package com.app.acitivty;

import com.app.activity.R;
import com.app.data.YouhuiItem;
import com.app.service.BaseService;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.provider.ContactsContract.CommonDataKinds.Im;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

public class YouhuiDetailActivity extends Activity {
	
	ProgressDialog progressDialog;
	YouhuiItem item;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		item = YouHuiActivity.cItem;
		setContentView(R.layout.youhuidetail);
		ImageView iconImg = (ImageView)findViewById(R.id.yh_detail_icon);
		iconImg.setImageBitmap(item.getIconbitmap());
		TextView contentView = (TextView)findViewById(R.id.yh_detail_content);
		contentView.setText(item.getContent());
		TextView priceView = (TextView)findViewById(R.id.yh_detail_price);
		priceView.setText("原价 :￥ "+item.getTicketPrice());
		TextView priceView2 = (TextView)findViewById(R.id.yh_detail_price2);
		priceView2.setText("优惠价 :￥"+item.getTicketPrice());
		
		WebView webView =(WebView)findViewById(R.id.yh_detail_webview);
		webView.loadDataWithBaseURL(BaseService.url_base, item.getHtmlContent(), "text/html", "utf-8","www.lijiang.com");
	}
}
